<%@codepage="65001"%>
<%session.codepage="65001"%>
<!-- #include virtual=/inc/dbConn.asp -->
<!-- #include virtual=/inc/function.asp -->
<!-- #include virtual=/inc/action.header.inc.asp -->

<%
	'## 파라미터 변수 선언부
	srcCd		= Request("srcCd")
	srcNm		= Request("srcNm")
	srcSeq		= Request("srcSeq")
	remark		= Request("remark")
	prdInfo		= Request("prdInfo")
	types		= Request("type")
	flag			= Request("flag")

	If itemSeq = "" Then itemSeq = 999 End If 
	If srcCd = "" Then srcCd = "0" End If 
	If amount = "" Then amount = "0" End If 

	remark		= Replace(remark,"'","''")
	srcNm		= Replace(srcNm,"'","''")
	prdInfo		= Replace(prdInfo,"'","''")
	
	SQLTitle = "-- ■■■■ 자재코드 정보 관리 저장 ■■■■"
	SQL = "exec spSrc '" & srcCd & "', '" & srcNm & "', " & srcSeq & ", " & amount & ", '" & prdInfo & "', '" & remark & "', '" & types & "', '" & flag & "'"

	If xMode="debug" Then 
		Call showDebug(SQLTitle,SQL) 
	End If 

'Response.write SQL
'Response.end
	DbCon.Execute SQL

	Call rsWithXML("Save OK!")
%>